<?php

App::uses('AppModel', 'Model');

class Order extends AppModel {
    public $belongsTo = array( 'BrandModel', 'CustomerType', 'Store' );
    
    public $validate = array(
        'brand_model_id'  => array(
            'rule'    => 'notEmpty', 
            'message' => 'Morate odabrati model aparata.'
        ),
        'datum_izdavanja' => array(
            'rule'    => 'date',
            'message' => 'Datum izdavanja nije validan.'
        ),
        'musterija_ime' => array(
            'rule'    => 'notEmpty',
            'message' => 'Morate uneti Ime mušterije.'
        )
    );
}

?>